using SqlSugar;
using IM.Easy.Core.Audit;

namespace IM.Easy.Entity.System
{
    /// <summary>
    /// 文件夹表
    /// </summary>
    [SugarTable("Folder")]
    public class Folder : ICreatedAt, IUpdatedAt, ICreatedBy
    {
        /// <summary>
        /// 文件夹唯一标识
        /// </summary>

        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 文件夹名称
        /// </summary>
        [SugarColumn(ColumnName = "folderName")]
        public string FolderName { get; set; }

        /// <summary>
        /// 父文件夹ID，根目录为 NULL
        /// </summary>
        [SugarColumn(ColumnName = "pid")]
        public Guid? Pid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "createdAt")]
        public DateTime? CreatedAt { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updatedAt")]
        public DateTime? UpdatedAt { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "createdBy")]
        public long CreatedBy { get; set; }

    }
}
